package WebServices;

import org.apache.axis.client.Call;
import org.apache.axis.client.Service;

import javax.xml.namespace.QName;

public class TestClient1
{
   public static void main(String [] args) 
   {
       try {
           String endpoint = "http://192.168.0.101:8080/axis/services/Version?wsdl";
     
           Service  service = new Service();
           Call     call    = (Call) service.createCall();

           call.setTargetEndpointAddress( new java.net.URL( endpoint ) );
           call.setOperationName(new QName( "getVersion" ) );
           String ret = (String) call.invoke( 
        		   new Object[] {  } 
        		   );

           System.out.println("got '" + ret + "'");
           
       } catch (Exception e) {
           System.err.println(e.toString());
       }
   }
}
